 |
 |
 |
 |
 |
|
|
 |
Classes
|
|
Private
and public
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
class Zoo {
|
|
// private as default ...
|
|
public:
|
|
// what follows is public until ...
|
|
private:
|
|
// ... here, where we switch back to private ...
|
public:
|
|
// ... and back to public.
|
|
};
|
|
|
|
|
|
 |
 |
 |
class Struct {
|
|
public: //
Structure elements are public by default
|
// elements, methods
|
|
};
|
|
|
|
|